package top.littleze.aiattendance.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.littleze.aiattendance.dao.AttendanceUserEntityMapper;
import top.littleze.aiattendance.entity.AttendanceUserEntity;
import top.littleze.aiattendance.service.AdminService;
import top.littleze.aiattendance.utils.page.Reply;

import java.util.List;

/**
 * @Author ZhaoGengze
 * @Date 2021/7/9 11:38
 */

@Service
@Slf4j
public class AdminServiceImpl implements AdminService {

    @Autowired
    AttendanceUserEntityMapper userEntityMapper;

    @Override
    public Reply<List<AttendanceUserEntity>> getUser() {
        List<AttendanceUserEntity> userEntityList = userEntityMapper.getUser();
        System.out.println(userEntityList);
        return Reply.success(userEntityList, userEntityList.size());
    }
}
